package com.beiye.drivertransport.SubActivity;

import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.beiye.drivertransport.R;
import com.beiye.drivertransport.activity.TwoBaseAty;
import com.githang.statusbar.StatusBarCompat;
import com.squareup.picasso.Picasso;


import butterknife.OnClick;
//驾驶员签字查看
public class SignCourseActivity extends TwoBaseAty {

     ImageView img_sign;

     ImageView img_sign_back;
     @Override
     public int getLayoutId() {
         return R.layout.activity_sign_course;
     }


    @Override
    public void onClick(View view) {
        if (view.getId() == R.id.img_sign_back) {
            finish();
        }

    }
     @Override
     public void initData() {
         img_sign = (ImageView) findViewById(R.id.img_sign);
         img_sign_back = (ImageView) findViewById(R.id.img_sign_back);
         StatusBarCompat.setStatusBarColor(this, Color.parseColor("#1F80C4"));
         Bundle bundle = getIntent().getExtras();
         String signPicUrl = bundle.getString("signPicUrl");
         if(signPicUrl==null)
         {
             img_sign.setImageResource(R.mipmap.no_data1);
             return;
         }
         Picasso.with(SignCourseActivity.this).load(Uri.parse(signPicUrl)).placeholder(R.mipmap.no_data1).into(img_sign);//加载图片

         img_sign_back.setOnClickListener(new View.OnClickListener() {
             @Override
             public void onClick(View view) {
                 finish();
             }
         });

     }

     @Override
     public void requestData() {

     }
 }
